home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 27 / CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso / CUCD / PowerPC / vbcc / machines / amigawos / libsrc / AmigaLib / MakeALIB.script < prev    next >
Text File  |  1998-08-02  |  3KB  |  93 lines

  1. if not exists MakeALIB.script
  2.   echo "Please change first to the script's directory!"
  3.   quit
  4. endif
  5.  
  6. set alibnam amiga.lib
  7. set fdflags -nv
  8. set vcflags +warpos -amiga-align
  9.  
  10. echo "Checking for required commands. Stopping if missing.*N"
  11.  
  12. failat 5
  13.   echo noline "which    : "
  14.     which which                 ;stop if missing. :-)
  15.   echo noline "copy     : "
  16.     which copy
  17.   echo noline "delete   : "
  18.     which delete
  19.   echo noline "execute  : "
  20.     which execute
  21.   echo noline "join     : "
  22.     which join
  23.   echo noline "list     : "
  24.     which list
  25.   echo noline "fd2libWOS: "
  26.     which fd2libWOS
  27.   echo noline "vc       : "
  28.     which vc
  29. failat 20
  30.  
  31. echo "*NCompiling $alibnam for WarpOS/PowerPC. This may take some time..."
  32.  
  33. echo "*NCleaning T:..."
  34.   delete t:($alibnam|#?.(s|o|dir|asm)) quiet >nil:
  35.  
  36. echo "*NProcessing FDs..."      ; cia_lib.fd klappt nicht, da keine Base angegeben (?)
  37.  
  38.   list   >t:mkfds lformat="fd2libWOS $fdflags -of *"Creating %%cs...*" -o t: %s%s" fd:(a(migaguide|sl)|b(att(clock|mem)|ullet)|c(ardres|o(lorwheel|mmodities|nsole)))#?.fd
  39.   list  >>t:mkfds lformat="fd2libWOS $fdflags -of *"Creating %%cs...*" -o t: %s%s" fd:(d(atatypes|isk(font|%)|os|tclass)|ex(ec|pansion)|g(adtools|raphics))#?.fd
  40.   list  >>t:mkfds lformat="fd2libWOS $fdflags -of *"Creating %%cs...*" -o t: %s%s" fd:(i(con|ffparse|n(put|tuition))|keymap|l(ayers|o(cale|wlevel)))#?.fd
  41.   list  >>t:mkfds lformat="fd2libWOS $fdflags -of *"Creating %%cs...*" -o t: %s%s" fd:(m(ath(ffp|ieee(doub(bas|trans)|sing(bas|trans))|trans)|isc))#?.fd
  42.   list  >>t:mkfds lformat="fd2libWOS $fdflags -of *"Creating %%cs...*" -o t: %s%s" fd:(nonvolatile|potgo|r(amdrive|e(altime|xxsyslib))|t(imer|ranslator)|utility|wb)#?.fd
  43.  
  44.   execute t:mkfds
  45.   delete  t:mkfds quiet
  46.  
  47. echo "*NAssembling stubs..."
  48.   vc $vcflags -c t:#?.s
  49.  
  50. echo "*NAssembling LVOs..."
  51.   vc -c t:#?.asm
  52.  
  53. echo "*NRemoving obsolete assembler sources..."
  54.   delete t:#?.s t:#?.asm quiet
  55.  
  56. echo "*NCompiling/Assembling support routines..."
  57.   vc $vcflags -c #?.(c|s)
  58.   vc -c #?.asm
  59.  
  60. echo "*NJoining everything together..."
  61.   join #?.o T:#?.o to T:$alibnam
  62.  
  63. echo "*NCleaning up..."
  64.   delete t:#?.o #?.o quiet
  65.  
  66. unset vcflags
  67. unset fdflags
  68.  
  69. set instto T:
  70.  
  71. which >nil: ask
  72. if not warn
  73.   ask "*NInstall $alibnam to vlibwos: (y/n)?"
  74.   if warn
  75.     set instto vlibwos:
  76.     failat 21
  77.     copy >nil: t:$alibnam $instto
  78.     if not fail
  79.       delete t:$alibnam quiet
  80.     endif
  81.     failat 20
  82.   endif
  83. endif
  84.  
  85. if exists ${instto}${alibnam}
  86.   echo "*N*N...poooh... $alibnam can be found in ${instto}."
  87. else
  88.   echo "*N*NInstallation error!"
  89. endif
  90.  
  91. unset instto
  92. unset alibnam
  93.